#include <stdio.h>
#include <stdlib.h>
#include<time.h>
void main()
{
	int num = time(NULL);
	srand(num);
	num = rand() % 100 + 1;
	printf("num is %d\n", num);
	for (int i = 0; i < 666; i) {
		int inputnum;
		scanf_s("%d", &inputnum);
		printf("your input is %d\n", inputnum);
		if (inputnum < num) {
			printf("your guess too small\n");
		}
		else if (inputnum > num) {
			printf("your guess too big\n");
		}
		else {
			printf("win");
			break;
		}
	}
}